Skip to content

Adsk contrib - Add method to check inactive color space and an extra getRoleColorSpace method#1792

Merged
doug-walker merged 8 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:adsk_contrib/add-method-to-check-inactive-colorspace
May 4, 2023
Merged

Adsk contrib - Add method to check inactive color space and an extra getRoleColorSpace method#1792
doug-walker merged 8 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:adsk_contrib/add-method-to-check-inactive-colorspace

Conversation

@cedrik-fuoco-adsk
Copy link
Copy Markdown
Contributor

This PR adds the following two methods:
isInactiveColorSpace - which tells the user if the specified color space is inactive or not.
getRoleColorSpace - which tells the user the color space associated with the specified role name.

Implements basic unit tests for those two methods.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Added the python bindings equivalents.
Tweak C++ unit tests and added python unit tests.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Moving the new unit tests
Adding extra tests for un-tested methods

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Comment thread tests/cpu/Config_tests.cpp Outdated
OCIO_CHECK_EQUAL(std::string(config->getRoleName(-4)), "");
OCIO_CHECK_EQUAL(std::string(config->getRoleColorSpace(-4)), "");

// Test existing roles in cg-config-v1.0.0_aces-v1.3_ocio-v2.1.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor] Remove the mention to cg config?

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
@doug-walker doug-walker merged commit 219ac86 into AcademySoftwareFoundation:main May 4, 2023
@doug-walker doug-walker deleted the adsk_contrib/add-method-to-check-inactive-colorspace branch May 4, 2023 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants